//
//  CacheDataHelper.h
//  CacheDemo
//
//  Created by liuyonghu on 2019/2/26.
//  Copyright © 2019年 liuyonghu. All rights reserved.
//


#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    plus,
    minus
} TimeType;

NS_ASSUME_NONNULL_BEGIN

@interface CacheDataHelper : NSObject
@property(nonatomic,strong)NSTimer *timer;
//获取单例
+ (CacheDataHelper *)shareHelper;
//缓存数据
- (void)saveCacheData: (id)data byKey:(NSString *)key;
//获取缓存
- (id)getCacheDataByKey:(NSString *)key;
// plus, minus one minute
//增加计时
- (void)updateBtTimeTypeKey:(NSString *)key;
//清除缓存
- (void)removeCacheDataByKey:(NSString *)key;
@end

NS_ASSUME_NONNULL_END
